export default (Vue) => {
  Vue.filter('DataflowRetcode', (type) => {
    /*eslint-disable*/
    switch (+type) {
      case 10000000:
        return '下单成功'
        break
      case 10990001:
        return '内部通讯异常'
        break
      case 11310100:
        return '无名细'
        break
      case 11310117:
        return '该渠道的业务已关闭'
        break
      case 11610020:
        return '钱包余额不足'
        break
      case 11610051:
        return '系统有重复流水，此流水不能再发起充值'
        break
      case 11610057:
        return '系统运维时间，请稍后尝试'
        break
      case 11810001:
        return '供货商品不存在'
        break
      case 11810004:
        return '货架编号或货架商品编号不存在'
        break
      case 11810024:
        return '无对应号段信息'
        break
      default:
        return type
    }
  /*eslint-enable*/
  })
}
